"""
ECB没有偏移量
"""
from Crypto.Cipher import AES
from binascii import b2a_hex, a2b_hex

from support import *

if __name__ == '__main__':
    readtext = open('./read.txt',encoding='utf-8')
    MyWord = readtext.read()
    print(MyWord)
    readtext.close()

    e = encrypt(MyWord)  # 加密
    print("加密:", e)

    f = open('./return.txt','w')
    txt = str(e)
    f.write(txt)
    f.close()